package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Hyzzqk generated by hbm2java
 */
@Entity
@Table(name = "hyzzqk")
public class Hyzzqk implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private String hylx;
    private String zzdj;
    private String zzrzjg;
    private String zsbh;
    private Date qdsj;
    private String yxq;
    private String wgjl;
    private Short xh;

    public Hyzzqk()
    {
    }

    public Hyzzqk( Long id )
    {
        this.id = id;
    }

    public Hyzzqk( Long id,
                   Jbqk jbqk,
                   String username,
                   String operation,
                   Date optdate,
                   String hylx,
                   String zzdj,
                   String zzrzjg,
                   String zsbh,
                   Date qdsj,
                   String yxq,
                   String wgjl,
                   Short xh )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.hylx = hylx;
        this.zzdj = zzdj;
        this.zzrzjg = zzrzjg;
        this.zsbh = zsbh;
        this.qdsj = qdsj;
        this.yxq = yxq;
        this.wgjl = wgjl;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "hylx", length = 10)
    public String getHylx()
    {
        return this.hylx;
    }

    public void setHylx( String hylx )
    {
        this.hylx = hylx;
    }

    @Column(name = "zzdj", length = 50)
    public String getZzdj()
    {
        return this.zzdj;
    }

    public void setZzdj( String zzdj )
    {
        this.zzdj = zzdj;
    }

    @Column(name = "zzrzjg", length = 50)
    public String getZzrzjg()
    {
        return this.zzrzjg;
    }

    public void setZzrzjg( String zzrzjg )
    {
        this.zzrzjg = zzrzjg;
    }

    @Column(name = "zsbh", length = 50)
    public String getZsbh()
    {
        return this.zsbh;
    }

    public void setZsbh( String zsbh )
    {
        this.zsbh = zsbh;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "qdsj", length = 23)
    public Date getQdsj()
    {
        return this.qdsj;
    }

    public void setQdsj( Date qdsj )
    {
        this.qdsj = qdsj;
    }

    @Column(name = "yxq", length = 50)
    public String getYxq()
    {
        return this.yxq;
    }

    public void setYxq( String yxq )
    {
        this.yxq = yxq;
    }

    @Column(name = "wgjl", length = 200)
    public String getWgjl()
    {
        return this.wgjl;
    }

    public void setWgjl( String wgjl )
    {
        this.wgjl = wgjl;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
